﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Newtonsoft.Json;
using LiuYan.Entity;
using LiuYan.Service;

namespace LiuYan.Web.Areas.Admin.Controllers
{
    public class MallController : BaseController
    {
        //
        // GET: /Admin/《all/

        public ActionResult About()
        {
           
            return View();
        }
        public ActionResult Stct()
        {

            return View();
        }
        public ActionResult YuFeng()
        {

            return View();
        }
        public ActionResult Connection()
        {
           
            return View();
        }
        public ActionResult Gmxz()
        {
            
            return View();
        }
        public ActionResult News()
        {

            return View();
        }
        public string GetData(int id)
        {
            return JsonConvert.SerializeObject(new AboutService().GetList(id));
        }

        public int Edit(FormCollection form)
        {
            TB_Base entity=new TB_Base();
            entity.Content = Server.UrlDecode(form["content"]);
            entity.Id = Convert.ToInt32(form["id"]);
            return new AboutService().Edit(entity);
        }

    }
}
